<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:c="http://java.sun.com/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
<f:view locale="#{localeBean.locale}" contentType="text/html">
  <h:head>
  	<h:outputStylesheet library="css" name="standard.css" />    
  </h:head>
  <h:body>
    <p:growl id="loginGrowl" showDetail="true" life="3000" />
    <h:panelGrid cellspacing="0" cellpadding="0" styleClass="wrapper">
      <h:panelGrid columns="2" columnClasses="menu,content">
			<p:panel cellspacing="0" cellpadding="0" styleClass="menu" style="width:250px;">
				<h:form id="menuForm">
					<h:link outcome="main">
						<h:graphicImage library="images" name="logo.jpg"
							styleClass="banner" alt="Spring Roo" />
					</h:link>
					<ui:insert name="menu">
						<ui:include src="menuOther.xhtml" />
					</ui:insert>
				</h:form>
			</p:panel>
        
        <h:panelGroup >
		    <p:panel id="mainPanel" toggleable="true" toggleSpeed="250" style="width:750px;">
		      <p/>
		      		      <!--h:outputText id="welcomeText" value="#{avisoBean.aviso.mensaje}" /-->
		      <h:outputText id="welcomeText" value="Seccion de avisos" />
		      <p/>
		      <div id="media"></div>
		    </p:panel>           
        	<br />
        	<h:form>
        	<h:panelGrid columns="4" align="right" >
        		<h:panelGrid style="width:690px;" cellspacing="0" cellpadding="0"></h:panelGrid>			
				<h:outputLink id="loginLink" value="javascript:void(0)" onclick="dlg.show()" title="Cerrar sesión">Salir</h:outputLink>
				<h:outputLink value="../pages/default.jsf" title="Ir a la Portada">Inicio</h:outputLink>  	
        	</h:panelGrid>
        	<br />
		    <h:panelGrid  id="busquedaPanel" columns="3" toggleable="true" toggleSpeed="250" styleClass="contenido">
				<h:outputLabel for="busqueda" value="Realiza la búsqueda de tu producto" />  
				<p:inputText id="busqueda" value="#{beanPublicacion.cadena}" label="Busqueda" style="width:400px;" /> 
				<p:commandButton id="buscarButton"  value="buscar" icon="ui-icon-search" style="margin:0;width:90px" 
				action="#{beanPublicacion.buscarPublicacion}"/> 		      
		      </h:panelGrid>
		      </h:form>
		      <div id="media"></div> 
		    <br />        	
          <h:panelGrid cellspacing="0" cellpadding="0" styleClass="content">
            <ui:insert name="content" />
          </h:panelGrid>
          <ui:insert name="footer">
            <ui:include src="footer.xhtml" />
          </ui:insert>
        </h:panelGroup>
      </h:panelGrid>
    </h:panelGrid>
  </h:body>
</f:view>
</html>